﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace BlueCMS.Core.IoC.Configuration
{
    public class ParameterConfigurationCollection : ConfigurationElementCollection
    {
        protected override bool IsElementName(string elementName)
        {
            return elementName == "property";
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ParameterConfiguration)element).Name;
        }

        protected override ConfigurationElement CreateNewElement()
        {
            return new ParameterConfiguration();
        }
    }
}
